﻿using System.Collections.Generic;

namespace WebApplicationSample.Customer
{
    public interface ICustomerProvider
    {
        List<CustomerModel> GetCustomers();
    }
    
    public class CustomerProvider:ICustomerProvider
    {
        public List<CustomerModel> GetCustomers()
        {
            var customers = new List<CustomerModel>();
            customers.Add(new CustomerModel(){Name = "tom",Age = 20,Email = "tom@126.com"});
            customers.Add(new CustomerModel(){Name = "tom2",Age = 20,Email = "tom2@126.com"});
            customers.Add(new CustomerModel(){Name = "tom3",Age = 20,Email = "tom3@126.com"});

            return customers;
        }
    }
}